﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Communication;

namespace Clipper.EngineerWindow
{
    /// <summary>
    /// WinSendCanCmd.xaml 的交互逻辑
    /// </summary>
    public partial class WinSendCanCmd : Window
    {
        public WinSendCanCmd()
        {
            InitializeComponent();
        }

        private void btnAm_Click(object sender, RoutedEventArgs e)
        {
            Can.SendCan(short.Parse(txtCanID.Text.ToString()), txtCmd.Text +Can.strEnd);
        }

        private void btnSend_Click(object sender, RoutedEventArgs e)
        {
            Can.SendCan(short.Parse(txtCanID1.Text.ToString()), txtCmd1.Text + Can.strEnd);
        }

        private void btnAm_Click_1(object sender, RoutedEventArgs e)
        {
            Can.SendCan(short.Parse(txtCanID2.Text.ToString()), txtCmd2.Text + Can.strEnd);
        }
    }
}
